<?php
$config=require basePath('config/db.php');
use Framework\Database;
$db=new Database($config);
$listings = $db->query('SELECT * FROM listing LIMIT 6')->fetchALL();

loadView('home',[
    'listings'=>$listings
]);